# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=arping
pkgver=2.24
pkgrel=0
pkgdesc="An ARP ping utility"
url="https://www.habets.pp.se/synscan/programs_arping.html"
arch="all"
license="GPL-2.0-or-later"
depends="!iputils"
makedepends="libnet-dev libpcap-dev"
checkdepends="subunit-dev check-dev"
subpackages="$pkgname-doc"
source="https://www.habets.pp.se/synscan/files/arping-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
	make
}

check() {
	./src/arping --help > /dev/null
}

package() {
	make DESTDIR="$pkgdir" install

	cd "$pkgdir"
	rm -vr usr/include
}

sha512sums="
922764936cea7c11f32c495ccbda5fecac073c3b8b4ae221cfafb1f846e52b8461bfd192e29f526f9b84391fc831d3c2aaf629779f6834dfbe4fda5b280bb1a7  arping-2.24.tar.gz
"
